package com.hrbxlh.virtualization.enums;

/**
 * 响应码枚举
 *
 * @author cheer
 */
public enum ResponseEnum {

    OK(200, "请求成功"),
    ILLEGAL_ARGUMENT(400, "参数不合法"),
    UNAUTHORIZED(401, "需要登录"),
    FORBIDDEN(403, "没有权限"),
    NOT_FOUND(404, "资源不存在"),
    ERROR(500, "请求失败");

    private Integer code;

    private String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
